file system model: Add batched insertion
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jun 2015 16:19:06 +0000 (12:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jun 2015 17:11:30 +0000 (13:11 -0400)
commitb2ceadb057011a120ff271c74bff5d2cbd6572bd
treecc9b0281dcdb7d0db49b270795108aa21b2c7598
parent9590879e2f550a29d230099680081a9d3a90d414
file system model: Add batched insertion

Add a batched version of gtk_file_system_model_add_and_query_file
that takes a list of files and avoids resorting the model for each
individual insertion. The querying is still done one-file-at-a-time,
so more optimization is certainly possible.
gtk/gtkfilesystemmodel.c
gtk/gtkfilesystemmodel.h